package com.cwl.pattern.访问者模式;

/**
 * @program: pattern
 * @description: 具体的访问者A
 * @author: ChenWenLong
 * @create: 2019-07-10 11:44
 **/
public class ConcreteVisitorA implements Visitor {

    @Override
    public void visit(ConcreteElementA element) {
        System.out.println("具体访问者A访问-->"+element.operationA());
    }

    @Override
    public void visit(ConcreteElementB element) {
        System.out.println("具体访问者A访问-->"+element.operationB());
    }
}
